package com.guhappy.action.model;

public class Stock implements Comparable<Stock> {
    private String id;
    private String name;

    public Stock() {
	super();
    }

    /**
	 * @param id
	 * @param name
	 */
	public Stock(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public String getId() {
	return id;
    }

    public void setId(String id) {
	this.id = id;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public int compareTo(Stock o) {
	return this.name.toLowerCase().compareTo(o.getName().toLowerCase());
    }
}
